package com.ftcs.controller.common;

import com.ftcs.controller.common.service.ActivitiService;
import com.ftcs.controller.common.service.EngineService;
import com.ftcs.model.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author changhuafeng
 * @since 2019/8/18
 */
@RestController
public class ActivitiController {
    @Autowired
    private ActivitiService activitiService;
    @Autowired
    private EngineService engineService;

    @PostMapping(value = "/getEnginInfo")
    public BaseResult getEnginInfo() {
        Map<String, Object> his = engineService.getEngineInfo();
        return BaseResult.success(his);
    }
}
